<!DOCTYPE html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>配件单管理</title>
    <link href="{:C('WEB_URL')}Public/admin/style/base.css" rel="stylesheet" type="text/css" />
    <link href="{:C('WEB_URL')}Public/admin/style/master.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/jquery1.9.1.js"></script>
    <script type="text/javascript" src="{:C('WEB_URL')}Public/admin/js/base.js"></script>
    <script>
        function del(id){
            if(confirm('确定要删除记录吗?')){
                var url="{:C('WEB_URL')}/Admin/Auto/del/id/"+id;
                $.getJSON(url,function(data){
                    if(data['status']==1){
                        $(".list > tbody").children("#J_list"+data['data']).remove();
                    }else{
                        alert(data['info']);
                    }
           
                })
            }
        }

    </script>
	<style type="text/css">
	.box-info{position:absolute;top:0px;bottom:0;right:0px;left:0px;border:1px solid red;background-color:rgba(144,144,145,0.5);display:none}
	</style>
</head>
<body>
    <div id="wrapper">
        <h2>订单管理<!-- <a href="{:U('add')}" class="but_add">添加</a> --></h2>
        <table class="list">
            <thead>
			<!--筛选-->
		<form action="{:U('shOrder')}" method="post" enctype="multipart/form-data">
			订单号:<input type='text' class='inputText' name='order_num' value="{$_REQUEST['order_num']}"/>
			用户手机号:<input type='text' class='inputText' name='name' value="{$_REQUEST['name']}"/>
			<input type='submit' value='搜索' class='btnOrange'>
		</form>
                <tr>
					<th>订单号</th><th>车主姓名</th><th>联系方式</th><th>车型</th>
					<th>订单金额</th><th>支付类型</th><th>订单类型</th>
					<th>下单时间</th><th>订单状态</th><th>操作</th>
                </tr>
            </thead>
            <tbody>
            <volist name='list' id='vo'>
                <tr align="center" id="J_list{$vo.brand_id}">
                   
                    <td>{$vo.order_num}&nbsp;</td>
					 <td>{$vo.username}&nbsp;</td>
					 <td>{$vo.realname}&nbsp;</td>
					  <td>{$vo.brand_name}-{$vo.model_name}-{$vo.model_pl}-{$vo.model_year}&nbsp;</td>
                      <td>￥{$vo.all_price}&nbsp;元</td>
					<td><?php if($vo['pay_type']==1){echo '支付宝支付';}elseif($vo['pay_type']==2){echo '微信支付';}elseif($vo['pay_type']==3){echo 'POS支付';}elseif($vo['pay_type']==9){echo '已支付';}else{echo '未支付';} ?></td>
					<td>
						<?php if($vo['uo_type'] == 1){echo '普通配件单';}elseif($vo['uo_type'] == 2){echo '特卖配件单';}else{echo '保养配件单';} ?>
					</td>
					<td><?php echo date('Y-m-d H:i:s',$vo['create_time']); ?>&nbsp;</td>                   
					<td><?php if($vo['status']<60 && $vo['status']>5){echo '正在保养';}elseif($vo['status']==60){echo '保养完成';}else{echo '未保养';} ?></td>
                    <td>
                        <empty name="_GET['id']"><a href="{:U('orderInfo',array('order_id'=>$vo['order_id']))}"  target="_bank" class="edit" >查看详情</a></empty>
                        <!--<a href="{:U('edit',array('id'=>$vo['brand_id']))}" class="edit" >编辑</a>
                        <span class="del hide" onClick="del({$vo.brand_id})">删除</span> -->
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
        <p class="hr_10"></p>
        <div class="pages">{$page} </div>
    </div>
	
	<div class='box-info'>
	</div>
	
<script type="text/javascript">

	

</script>
</body>
</html>